﻿namespace Bilibili.Model.Video
{
    public sealed class SeasonModel
    {
        public string Season_Id { get; set; }
        public string Cover { get; set; }
        public string Title { get; set; }
        public int Is_Finish { get; set; }
        public int Episode_Status { get; set; }
        public string Newest_Ep_Index { get; set; }
        public string Newest_Ep_Id { get; set; }
        public int Weekday { get; set; }
        public int? Total_Count { get; set; }
        public string BanText
        {
            get
            {
                if (Is_Finish == 1)
                {
                    return string.Format("已完结,共{0}话", Total_Count);
                }
                else
                {
                    string we = string.Empty;
                    switch (Weekday)
                    {
                        case 1:
                            we = "一";
                            break;
                        case 2:
                            we = "二";
                            break;
                        case 3:
                            we = "三";
                            break;
                        case 4:
                            we = "四";
                            break;
                        case 5:
                            we = "五";
                            break;
                        case 6:
                            we = "六";
                            break;
                        case 7:
                            we = "七";
                            break;
                    }
                    return string.Format("连载中,每周{0}更新", we);
                }
            }
        }
    }
}